/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

package com.jy.rhin.facade.ws.registration.organization;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jy.rhin.application.registration.OrganizationService;
import com.jy.rhin.config.NamespaceConstants;
import com.jy.rhin.support.aspect.AuditLog;

import cn.org.chiss.rhin._2015.registration.organization.OrganizationFeed;
import cn.org.chiss.rhin._2015.registration.organization.OrganizationFeedResponse;
import cn.org.chiss.rhin._2015.registration.organization.OrganizationQueryRequest;
import cn.org.chiss.rhin._2015.registration.organization.OrganizationQueryResponseMessage;


@WebService(
        serviceName = "OrganizationProvider",
        portName = "OrganizationProviderPort",
        targetNamespace = NamespaceConstants.NS_RHIN,
        endpointInterface = "com.jy.rhin.facade.ws.registration.organization.OrganizationProvider")
@Component
public class OrganizationProviderPortImpl implements OrganizationProvider {

	@Autowired
	OrganizationService organizationService;

	@Override
	@AuditLog
	public OrganizationFeedResponse organizationFeed(OrganizationFeed message) {
		return organizationService.organizationFeed(message);
	}
	@Override
	@AuditLog
	public OrganizationQueryResponseMessage organizationQuery(OrganizationQueryRequest OrganizationQueryRequest) {
		return organizationService.organizationQuery(OrganizationQueryRequest);
	}
}
